package com.ruoyi.collect.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(contextId = "remoteCollectProductAService", value = ServiceNameConstants.COLLECT_SERVICE)
public interface RemoteCollectProductAService {

    /**
     * 通过id获取公共库产品信息
     */
    @GetMapping("/collect/collectProductA/getCollectProductAAllInfoById/{collectProductId}")
    public R<Object> getCollectProductAAllInfoById(@PathVariable("collectProductId") Long id);

    @GetMapping("/collect/collectProductA/sendCollectUpdateResult/{collectProductId}/{type}/{msg}")
    public R<Object> sendCollectUpdateResult(
            @PathVariable("collectProductId") Long collectProductId,
            @PathVariable("type") Integer type,
            @PathVariable("msg") String msg
    );

}
